
package com.idealighter.game.games.errentexaspoker.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.games.errentexaspoker.manager.ErrenTexapokerMgr;
import com.idealighter.game.games.errentexaspoker.message.ReqDealCardOverMsg;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;


@ReqMsgHandler(515118)
public class ReqDealCardOverHandler implements ReqMessageHandler {

  @Inject
  private ErrenTexapokerMgr errenTexamgr;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqDealCardOverMsg msg = (ReqDealCardOverMsg) message;
    errenTexamgr.dodealCardOver(player, msg.getRoomId(), msg.getTableId());

    return null;
  }
}
